<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/26
 * Time: 13:57
 */
namespace app\admin\controller;
use think\facade\Config;
class User
{
    public function get(){
        //获取全部的配置项
        //dump(Config::get());

        //仅获取app下面的配置项，app是一级配置项，与config/app.php文件对应

        dump(Config::get('app.'));
    }

    public function helper(){
        dump(config('database.username'));
        config('database.hostname','localhost');
        dump(config('database.hostname'));
    }
}